package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Contact;
import cn.tedu.antconlonysever.contract.pojo.entity.Loss;
import cn.tedu.antconlonysever.contract.pojo.vo.ContactListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.ContactStandardVO;
import cn.tedu.antconlonysever.contract.pojo.vo.LossListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.LossStandardVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface IContactRepository {
    int insert(Contact contact);
    int insertBatch(List<Contact> contactList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(Contact contact);
    int count();
    int countCusId(Long cusId);
    int contactUsIdNotId(@Param("id")Long id, @Param("cus_id") Long cusId);
    ContactStandardVO getStandardById(Long id);
    PageData<ContactListVO> list(Integer pageNum, Integer pageSize);
}
